﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200139D RID: 5021
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeRollShopRewardCsReq : IMessage<TakeRollShopRewardCsReq>, IMessage, IEquatable<TakeRollShopRewardCsReq>, IDeepCloneable<TakeRollShopRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003F50 RID: 16208
		// (get) Token: 0x0600E0D8 RID: 57560 RVA: 0x00259420 File Offset: 0x00257620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeRollShopRewardCsReq> Parser
		{
			get
			{
				return TakeRollShopRewardCsReq._parser;
			}
		}

		// Token: 0x17003F51 RID: 16209
		// (get) Token: 0x0600E0D9 RID: 57561 RVA: 0x00259427 File Offset: 0x00257627
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeRollShopRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F52 RID: 16210
		// (get) Token: 0x0600E0DA RID: 57562 RVA: 0x00259439 File Offset: 0x00257639
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeRollShopRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600E0DB RID: 57563 RVA: 0x00259440 File Offset: 0x00257640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRollShopRewardCsReq()
		{
		}

		// Token: 0x0600E0DC RID: 57564 RVA: 0x00259448 File Offset: 0x00257648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRollShopRewardCsReq(TakeRollShopRewardCsReq other) : this()
		{
			this.rollShopId_ = other.rollShopId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E0DD RID: 57565 RVA: 0x0025946D File Offset: 0x0025766D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRollShopRewardCsReq Clone()
		{
			return new TakeRollShopRewardCsReq(this);
		}

		// Token: 0x17003F53 RID: 16211
		// (get) Token: 0x0600E0DE RID: 57566 RVA: 0x00259475 File Offset: 0x00257675
		// (set) Token: 0x0600E0DF RID: 57567 RVA: 0x0025947D File Offset: 0x0025767D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RollShopId
		{
			get
			{
				return this.rollShopId_;
			}
			set
			{
				this.rollShopId_ = value;
			}
		}

		// Token: 0x0600E0E0 RID: 57568 RVA: 0x00259486 File Offset: 0x00257686
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeRollShopRewardCsReq);
		}

		// Token: 0x0600E0E1 RID: 57569 RVA: 0x00259494 File Offset: 0x00257694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeRollShopRewardCsReq other)
		{
			return other != null && (other == this || (this.RollShopId == other.RollShopId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E0E2 RID: 57570 RVA: 0x002594C4 File Offset: 0x002576C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RollShopId != 0U)
			{
				num ^= this.RollShopId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E0E3 RID: 57571 RVA: 0x00259503 File Offset: 0x00257703
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E0E4 RID: 57572 RVA: 0x0025950B File Offset: 0x0025770B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E0E5 RID: 57573 RVA: 0x00259514 File Offset: 0x00257714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RollShopId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.RollShopId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E0E6 RID: 57574 RVA: 0x00259548 File Offset: 0x00257748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RollShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RollShopId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E0E7 RID: 57575 RVA: 0x00259586 File Offset: 0x00257786
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeRollShopRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RollShopId != 0U)
			{
				this.RollShopId = other.RollShopId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E0E8 RID: 57576 RVA: 0x002595B7 File Offset: 0x002577B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E0E9 RID: 57577 RVA: 0x002595C0 File Offset: 0x002577C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.RollShopId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400590A RID: 22794
		private static readonly MessageParser<TakeRollShopRewardCsReq> _parser = new MessageParser<TakeRollShopRewardCsReq>(() => new TakeRollShopRewardCsReq());

		// Token: 0x0400590B RID: 22795
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400590C RID: 22796
		public const int RollShopIdFieldNumber = 12;

		// Token: 0x0400590D RID: 22797
		private uint rollShopId_;
	}
}
